
package com.insigma.business.qrcode.welfare._consumer.impl;


import com.insigma.business.qrcode.common.template.BasePagingResponse;
import com.insigma.business.qrcode.common.vo.BaseDeleteRequest;
import com.insigma.business.qrcode.common.vo.BaseResponse;
import com.insigma.business.qrcode.soldier.dto.SimpleApiRequest;
import com.insigma.business.qrcode.soldier.request.BaseGetRequest;
import com.insigma.business.qrcode.welfare.dto.HospitalStatsDTO;
import com.insigma.business.qrcode.welfare.dto.ScanCodeRecordDTO;
import com.insigma.business.qrcode.welfare.dto.ScenicSpotStatsDTO;
import com.insigma.business.qrcode.welfare.request.ScanCodeRecordInsertRequest;
import com.insigma.business.qrcode.welfare.request.ScanCodeRecordSearchRequest;
import com.insigma.business.qrcode.welfare.request.ScanCodeRecordUpdateRequest;
import com.insigma.business.qrcode.welfare._consumer.ScanCodeRecordConsumer;
import com.insigma.business.qrcode.welfare._provider.ScanCodeRecordProvider;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service("scanCodeRecordConsumer")
public class ScanCodeRecordConsumerImpl implements ScanCodeRecordConsumer {

    @Resource
    private ScanCodeRecordProvider scanCodeRecordProvider;

    
    @Override
    public BasePagingResponse<List<ScanCodeRecordDTO>> searchScanCodeRecord(final ScanCodeRecordSearchRequest searchRequest) {
        return scanCodeRecordProvider.searchScanCodeRecord(searchRequest);
    }

   
    @Override
    public BaseResponse<ScanCodeRecordDTO> getScanCodeRecord(final BaseGetRequest baseGetRequest) {
        return scanCodeRecordProvider.getScanCodeRecord(baseGetRequest);
    }

    
    @Override
    public BaseResponse<String> insertScanCodeRecord(final ScanCodeRecordInsertRequest insertRequest) {
        return scanCodeRecordProvider.insertScanCodeRecord(insertRequest);
    }

    
    @Override
    public BaseResponse<Integer> updateScanCodeRecord(final ScanCodeRecordUpdateRequest updateRequest) {
        return scanCodeRecordProvider.updateScanCodeRecord(updateRequest);
    }

    
    @Override
    public BaseResponse<Integer> deleteScanCodeRecord(final BaseDeleteRequest deleteRequest) {
        return scanCodeRecordProvider.deleteScanCodeRecord(deleteRequest);
    }

    @Override
    public BasePagingResponse<List<ScanCodeRecordDTO>> searchMyRecord(ScanCodeRecordSearchRequest searchRequest) {
        return scanCodeRecordProvider.searchMyRecord(searchRequest);
    }

    @Override
    public BasePagingResponse<List<ScanCodeRecordDTO>> searchHospitalRecord(ScanCodeRecordSearchRequest searchRequest) {
        return scanCodeRecordProvider.searchHospitalRecord(searchRequest);
    }


    @Override
    public BaseResponse<ScenicSpotStatsDTO> getScenicSpotStats(SimpleApiRequest request) {
        return scanCodeRecordProvider.getScenicSpotStats(request);
    }

    @Override
    public BaseResponse<HospitalStatsDTO> getHospitalStats(SimpleApiRequest request) {
        return scanCodeRecordProvider.getHospitalStats(request);
    }
}
